package com.eshop.tools.service.dto;

import java.sql.Timestamp;
import java.io.Serializable;

public class QiniuContentDto implements Serializable
{
    private Long id;
    private String bucket;
    private String name;
    private String size;
    private String type;
    private Timestamp updateTime;
    private String url;
    private String suffix;
    
    public String getKey() {
        return this.name;
    }
    
    public Long getId() {
        return this.id;
    }
    
    public String getBucket() {
        return this.bucket;
    }
    
    public String getName() {
        return this.name;
    }
    
    public String getSize() {
        return this.size;
    }
    
    public String getType() {
        return this.type;
    }
    
    public Timestamp getUpdateTime() {
        return this.updateTime;
    }
    
    public String getUrl() {
        return this.url;
    }
    
    public String getSuffix() {
        return this.suffix;
    }
    
    public void setId(final Long id) {
        this.id = id;
    }
    
    public void setBucket(final String bucket) {
        this.bucket = bucket;
    }
    
    public void setName(final String name) {
        this.name = name;
    }
    
    public void setSize(final String size) {
        this.size = size;
    }
    
    public void setType(final String type) {
        this.type = type;
    }
    
    public void setUpdateTime(final Timestamp updateTime) {
        this.updateTime = updateTime;
    }
    
    public void setUrl(final String url) {
        this.url = url;
    }
    
    public void setSuffix(final String suffix) {
        this.suffix = suffix;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof QiniuContentDto)) {
            return false;
        }
        final QiniuContentDto other = (QiniuContentDto)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        Label_0065: {
            if (this$id == null) {
                if (other$id == null) {
                    break Label_0065;
                }
            }
            else if (this$id.equals(other$id)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$bucket = this.getBucket();
        final Object other$bucket = other.getBucket();
        Label_0102: {
            if (this$bucket == null) {
                if (other$bucket == null) {
                    break Label_0102;
                }
            }
            else if (this$bucket.equals(other$bucket)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$name = this.getName();
        final Object other$name = other.getName();
        Label_0139: {
            if (this$name == null) {
                if (other$name == null) {
                    break Label_0139;
                }
            }
            else if (this$name.equals(other$name)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$size = this.getSize();
        final Object other$size = other.getSize();
        Label_0176: {
            if (this$size == null) {
                if (other$size == null) {
                    break Label_0176;
                }
            }
            else if (this$size.equals(other$size)) {
                break Label_0176;
            }
            return false;
        }
        final Object this$type = this.getType();
        final Object other$type = other.getType();
        Label_0213: {
            if (this$type == null) {
                if (other$type == null) {
                    break Label_0213;
                }
            }
            else if (this$type.equals(other$type)) {
                break Label_0213;
            }
            return false;
        }
        final Object this$updateTime = this.getUpdateTime();
        final Object other$updateTime = other.getUpdateTime();
        Label_0250: {
            if (this$updateTime == null) {
                if (other$updateTime == null) {
                    break Label_0250;
                }
            }
            else if (this$updateTime.equals(other$updateTime)) {
                break Label_0250;
            }
            return false;
        }
        final Object this$url = this.getUrl();
        final Object other$url = other.getUrl();
        Label_0287: {
            if (this$url == null) {
                if (other$url == null) {
                    break Label_0287;
                }
            }
            else if (this$url.equals(other$url)) {
                break Label_0287;
            }
            return false;
        }
        final Object this$suffix = this.getSuffix();
        final Object other$suffix = other.getSuffix();
        if (this$suffix == null) {
            if (other$suffix == null) {
                return true;
            }
        }
        else if (this$suffix.equals(other$suffix)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof QiniuContentDto;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $id = this.getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        final Object $bucket = this.getBucket();
        result = result * 59 + (($bucket == null) ? 43 : $bucket.hashCode());
        final Object $name = this.getName();
        result = result * 59 + (($name == null) ? 43 : $name.hashCode());
        final Object $size = this.getSize();
        result = result * 59 + (($size == null) ? 43 : $size.hashCode());
        final Object $type = this.getType();
        result = result * 59 + (($type == null) ? 43 : $type.hashCode());
        final Object $updateTime = this.getUpdateTime();
        result = result * 59 + (($updateTime == null) ? 43 : $updateTime.hashCode());
        final Object $url = this.getUrl();
        result = result * 59 + (($url == null) ? 43 : $url.hashCode());
        final Object $suffix = this.getSuffix();
        result = result * 59 + (($suffix == null) ? 43 : $suffix.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "QiniuContentDto(id=" + this.getId() + ", bucket=" + this.getBucket() + ", name=" + this.getName() + ", size=" + this.getSize() + ", type=" + this.getType() + ", updateTime=" + this.getUpdateTime() + ", url=" + this.getUrl() + ", suffix=" + this.getSuffix() + ")";
    }
}
